package com.clkj.zhonghui.service.stored;

import com.clkj.zhonghui.pojo.stored.Stored;
import com.clkj.zhonghui.pojo.stored.UserStored;
import com.clkj.zhonghui.pojo.stored.UserStoredDetail;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @author yawang
 * @create 2024/07/15 11:00:29
 **/
public interface StoredService {
    Map listMain(Integer userId,Integer shopId);

    List<UserStoredDetail> listDetail(Integer userId,Integer flag);

    List<UserStoredDetail> listShareDetail(Integer userId);

    Map userPay(Integer userId, Integer shopId,Integer shareId, Double storedMoney, Double rebate, Double shareRebate, Integer flag, String openId, Integer ifDown,HttpServletRequest request);

    void paySuccess(HttpServletRequest request, HttpServletResponse response);

    void addStored(Stored stored);

    List<Stored> listStored(Integer flag);

    void deleteStored(String ids);

    Map listDrawMain(Integer shopId,Integer userId,Integer flag);

    Map listActMain(Integer userId) throws ParseException;

    Map addActDetail(Integer userId,Integer dayNum);

    Map addCoupon(Integer userId) throws ParseException;

    Map listUserImg(Integer userId,String  picName,Integer shopId) throws IOException;

    PageInfo listAllUserStored(Integer page, Integer size, Integer userId);

    List<UserStoredDetail> listUserStoredDetail(Integer userId);


}
